package com.cskaoyan.javase._2inner._4extend;

import sun.util.cldr.CLDRLocaleDataMetaInfo;

/**
 * 使用成员内部类来实现多继承
 * @since 09:55
 * @author wuguidong@cskaoyan.onaliyun.com
 */
public class Demo {
    public static void main(String[] args) {
        new A().method();
    }
}

class A extends B {
    class CSon extends C {
    }

    class DSon extends D {
    }

    public void method() {
        test();
        new CSon().test();
        new DSon().test();
    }
}

class B {
    public void test() {
        System.out.println("B");
    }
}

class C {
    public void test() {
        System.out.println("C");
    }

}

class D {
    public void test() {
        System.out.println("D");
    }

}
